home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / g / gnu_c / info.lzh / INFO / GCC_INFO.1 < prev    next >
Encoding:
GNU Info File  |  1993-10-21  |  50.9 KB  |  1,137 lines

  1. This is Info file gcc.info, produced by Makeinfo-1.54 from the input
  2. file gcc.texi.
  3.  
  4.    This file documents the use and the internals of the GNU compiler.
  5.  
  6.    Copyright (C) 1988, 1989, 1992, 1993 Free Software Foundation, Inc.
  7.  
  8.    Permission is granted to make and distribute verbatim copies of this
  9. manual provided the copyright notice and this permission notice are
  10. preserved on all copies.
  11.  
  12.    Permission is granted to copy and distribute modified versions of
  13. this manual under the conditions for verbatim copying, provided also
  14. that the sections entitled "GNU General Public License" and "Protect
  15. Your Freedom--Fight `Look And Feel'" are included exactly as in the
  16. original, and provided that the entire resulting derived work is
  17. distributed under the terms of a permission notice identical to this
  18. one.
  19.  
  20.    Permission is granted to copy and distribute translations of this
  21. manual into another language, under the above conditions for modified
  22. versions, except that the sections entitled "GNU General Public
  23. License" and "Protect Your Freedom--Fight `Look And Feel'", and this
  24. permission notice, may be included in translations approved by the Free
  25. Software Foundation instead of in the original English.
  26.  
  27. File: gcc.info,  Node: Top,  Next: Copying,  Up: (DIR)
  28.  
  29. Introduction
  30. ************
  31.  
  32.    This manual documents how to run, install and port the GNU compiler,
  33. as well as its new features and incompatibilities, and how to report
  34. bugs.  It corresponds to GNU CC version 2.4.
  35.  
  36. * Menu:
  37.  
  38. * Copying::         GNU General Public License says
  39.                      how you can copy and share GNU CC.
  40. * Contributors::    People who have contributed to GNU CC.
  41. * Boycott::        Protect your freedom--fight "look and feel".
  42.  
  43. * G++ and GCC::     You can compile C or C++ programs.
  44. * Invoking GCC::    Command options supported by `gcc'.
  45. * Installation::    How to configure, compile and install GNU CC.
  46. * C Extensions::    GNU extensions to the C language family.
  47. * C++ Extensions::  GNU extensions to the C++ language.
  48. * Trouble::         If you have trouble installing GNU CC.
  49. * Bugs::            How, why and where to report bugs.
  50. * Service::         How to find suppliers of support for GNU CC.
  51. * VMS::             Using GNU CC on VMS.
  52.  
  53. * Portability::     Goals of GNU CC's portability features.
  54. * Interface::       Function-call interface of GNU CC output.
  55. * Passes::          Order of passes, what they do, and what each file is for.
  56. * RTL::             The intermediate representation that most passes work on.
  57. * Machine Desc::    How to write machine description instruction patterns.
  58. * Target Macros::   How to write the machine description C macros.
  59. * Config::          Writing the `xm-MACHINE.h' file.
  60.  
  61. * Index::        Index of concepts and symbol names.
  62.  
  63. File: gcc.info,  Node: Copying,  Next: Contributors,  Prev: Top,  Up: Top
  64.  
  65. GNU GENERAL PUBLIC LICENSE
  66. **************************
  67.  
  68.                          Version 2, June 1991
  69.  
  70.      Copyright (C) 1989, 1991 Free Software Foundation, Inc.
  71.      675 Mass Ave, Cambridge, MA 02139, USA
  72.      
  73.      Everyone is permitted to copy and distribute verbatim copies
  74.      of this license document, but changing it is not allowed.
  75.  
  76. Preamble
  77. ========
  78.  
  79.    The licenses for most software are designed to take away your
  80. freedom to share and change it.  By contrast, the GNU General Public
  81. License is intended to guarantee your freedom to share and change free
  82. software--to make sure the software is free for all its users.  This
  83. General Public License applies to most of the Free Software
  84. Foundation's software and to any other program whose authors commit to
  85. using it.  (Some other Free Software Foundation software is covered by
  86. the GNU Library General Public License instead.)  You can apply it to
  87. your programs, too.
  88.  
  89.    When we speak of free software, we are referring to freedom, not
  90. price.  Our General Public Licenses are designed to make sure that you
  91. have the freedom to distribute copies of free software (and charge for
  92. this service if you wish), that you receive source code or can get it
  93. if you want it, that you can change the software or use pieces of it in
  94. new free programs; and that you know you can do these things.
  95.  
  96.    To protect your rights, we need to make restrictions that forbid
  97. anyone to deny you these rights or to ask you to surrender the rights.
  98. These restrictions translate to certain responsibilities for you if you
  99. distribute copies of the software, or if you modify it.
  100.  
  101.    For example, if you distribute copies of such a program, whether
  102. gratis or for a fee, you must give the recipients all the rights that
  103. you have.  You must make sure that they, too, receive or can get the
  104. source code.  And you must show them these terms so they know their
  105. rights.
  106.  
  107.    We protect your rights with two steps: (1) copyright the software,
  108. and (2) offer you this license which gives you legal permission to copy,
  109. distribute and/or modify the software.
  110.  
  111.    Also, for each author's protection and ours, we want to make certain
  112. that everyone understands that there is no warranty for this free
  113. software.  If the software is modified by someone else and passed on, we
  114. want its recipients to know that what they have is not the original, so
  115. that any problems introduced by others will not reflect on the original
  116. authors' reputations.
  117.  
  118.    Finally, any free program is threatened constantly by software
  119. patents.  We wish to avoid the danger that redistributors of a free
  120. program will individually obtain patent licenses, in effect making the
  121. program proprietary.  To prevent this, we have made it clear that any
  122. patent must be licensed for everyone's free use or not licensed at all.
  123.  
  124.    The precise terms and conditions for copying, distribution and
  125. modification follow.
  126.  
  127.     TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  128.  
  129.   1. This License applies to any program or other work which contains a
  130.      notice placed by the copyright holder saying it may be distributed
  131.      under the terms of this General Public License.  The "Program",
  132.      below, refers to any such program or work, and a "work based on
  133.      the Program" means either the Program or any derivative work under
  134.      copyright law: that is to say, a work containing the Program or a
  135.      portion of it, either verbatim or with modifications and/or
  136.      translated into another language.  (Hereinafter, translation is
  137.      included without limitation in the term "modification".)  Each
  138.      licensee is addressed as "you".
  139.  
  140.      Activities other than copying, distribution and modification are
  141.      not covered by this License; they are outside its scope.  The act
  142.      of running the Program is not restricted, and the output from the
  143.      Program is covered only if its contents constitute a work based on
  144.      the Program (independent of having been made by running the
  145.      Program).  Whether that is true depends on what the Program does.
  146.  
  147.   2. You may copy and distribute verbatim copies of the Program's
  148.      source code as you receive it, in any medium, provided that you
  149.      conspicuously and appropriately publish on each copy an appropriate
  150.      copyright notice and disclaimer of warranty; keep intact all the
  151.      notices that refer to this License and to the absence of any
  152.      warranty; and give any other recipients of the Program a copy of
  153.      this License along with the Program.
  154.  
  155.      You may charge a fee for the physical act of transferring a copy,
  156.      and you may at your option offer warranty protection in exchange
  157.      for a fee.
  158.  
  159.   3. You may modify your copy or copies of the Program or any portion
  160.      of it, thus forming a work based on the Program, and copy and
  161.      distribute such modifications or work under the terms of Section 1
  162.      above, provided that you also meet all of these conditions:
  163.  
  164.        a. You must cause the modified files to carry prominent notices
  165.           stating that you changed the files and the date of any change.
  166.  
  167.        b. You must cause any work that you distribute or publish, that
  168.           in whole or in part contains or is derived from the Program
  169.           or any part thereof, to be licensed as a whole at no charge
  170.           to all third parties under the terms of this License.
  171.  
  172.        c. If the modified program normally reads commands interactively
  173.           when run, you must cause it, when started running for such
  174.           interactive use in the most ordinary way, to print or display
  175.           an announcement including an appropriate copyright notice and
  176.           a notice that there is no warranty (or else, saying that you
  177.           provide a warranty) and that users may redistribute the
  178.           program under these conditions, and telling the user how to
  179.           view a copy of this License.  (Exception: if the Program
  180.           itself is interactive but does not normally print such an
  181.           announcement, your work based on the Program is not required
  182.           to print an announcement.)
  183.  
  184.      These requirements apply to the modified work as a whole.  If
  185.      identifiable sections of that work are not derived from the
  186.      Program, and can be reasonably considered independent and separate
  187.      works in themselves, then this License, and its terms, do not
  188.      apply to those sections when you distribute them as separate
  189.      works.  But when you distribute the same sections as part of a
  190.      whole which is a work based on the Program, the distribution of
  191.      the whole must be on the terms of this License, whose permissions
  192.      for other licensees extend to the entire whole, and thus to each
  193.      and every part regardless of who wrote it.
  194.  
  195.      Thus, it is not the intent of this section to claim rights or
  196.      contest your rights to work written entirely by you; rather, the
  197.      intent is to exercise the right to control the distribution of
  198.      derivative or collective works based on the Program.
  199.  
  200.      In addition, mere aggregation of another work not based on the
  201.      Program with the Program (or with a work based on the Program) on
  202.      a volume of a storage or distribution medium does not bring the
  203.      other work under the scope of this License.
  204.  
  205.   4. You may copy and distribute the Program (or a work based on it,
  206.      under Section 2) in object code or executable form under the terms
  207.      of Sections 1 and 2 above provided that you also do one of the
  208.      following:
  209.  
  210.        a. Accompany it with the complete corresponding machine-readable
  211.           source code, which must be distributed under the terms of
  212.           Sections 1 and 2 above on a medium customarily used for
  213.           software interchange; or,
  214.  
  215.        b. Accompany it with a written offer, valid for at least three
  216.           years, to give any third party, for a charge no more than your
  217.           cost of physically performing source distribution, a complete
  218.           machine-readable copy of the corresponding source code, to be
  219.           distributed under the terms of Sections 1 and 2 above on a
  220.           medium customarily used for software interchange; or,
  221.  
  222.        c. Accompany it with the information you received as to the offer
  223.           to distribute corresponding source code.  (This alternative is
  224.           allowed only for noncommercial distribution and only if you
  225.           received the program in object code or executable form with
  226.           such an offer, in accord with Subsection b above.)
  227.  
  228.      The source code for a work means the preferred form of the work for
  229.      making modifications to it.  For an executable work, complete
  230.      source code means all the source code for all modules it contains,
  231.      plus any associated interface definition files, plus the scripts
  232.      used to control compilation and installation of the executable.
  233.      However, as a special exception, the source code distributed need
  234.      not include anything that is normally distributed (in either
  235.      source or binary form) with the major components (compiler,
  236.      kernel, and so on) of the operating system on which the executable
  237.      runs, unless that component itself accompanies the executable.
  238.  
  239.      If distribution of executable or object code is made by offering
  240.      access to copy from a designated place, then offering equivalent
  241.      access to copy the source code from the same place counts as
  242.      distribution of the source code, even though third parties are not
  243.      compelled to copy the source along with the object code.
  244.  
  245.   5. You may not copy, modify, sublicense, or distribute the Program
  246.      except as expressly provided under this License.  Any attempt
  247.      otherwise to copy, modify, sublicense or distribute the Program is
  248.      void, and will automatically terminate your rights under this
  249.      License.  However, parties who have received copies, or rights,
  250.      from you under this License will not have their licenses
  251.      terminated so long as such parties remain in full compliance.
  252.  
  253.   6. You are not required to accept this License, since you have not
  254.      signed it.  However, nothing else grants you permission to modify
  255.      or distribute the Program or its derivative works.  These actions
  256.      are prohibited by law if you do not accept this License.
  257.      Therefore, by modifying or distributing the Program (or any work
  258.      based on the Program), you indicate your acceptance of this
  259.      License to do so, and all its terms and conditions for copying,
  260.      distributing or modifying the Program or works based on it.
  261.  
  262.   7. Each time you redistribute the Program (or any work based on the
  263.      Program), the recipient automatically receives a license from the
  264.      original licensor to copy, distribute or modify the Program
  265.      subject to these terms and conditions.  You may not impose any
  266.      further restrictions on the recipients' exercise of the rights
  267.      granted herein.  You are not responsible for enforcing compliance
  268.      by third parties to this License.
  269.  
  270.   8. If, as a consequence of a court judgment or allegation of patent
  271.      infringement or for any other reason (not limited to patent
  272.      issues), conditions are imposed on you (whether by court order,
  273.      agreement or otherwise) that contradict the conditions of this
  274.      License, they do not excuse you from the conditions of this
  275.      License.  If you cannot distribute so as to satisfy simultaneously
  276.      your obligations under this License and any other pertinent
  277.      obligations, then as a consequence you may not distribute the
  278.      Program at all.  For example, if a patent license would not permit
  279.      royalty-free redistribution of the Program by all those who
  280.      receive copies directly or indirectly through you, then the only
  281.      way you could satisfy both it and this License would be to refrain
  282.      entirely from distribution of the Program.
  283.  
  284.      If any portion of this section is held invalid or unenforceable
  285.      under any particular circumstance, the balance of the section is
  286.      intended to apply and the section as a whole is intended to apply
  287.      in other circumstances.
  288.  
  289.      It is not the purpose of this section to induce you to infringe any
  290.      patents or other property right claims or to contest validity of
  291.      any such claims; this section has the sole purpose of protecting
  292.      the integrity of the free software distribution system, which is
  293.      implemented by public license practices.  Many people have made
  294.      generous contributions to the wide range of software distributed
  295.      through that system in reliance on consistent application of that
  296.      system; it is up to the author/donor to decide if he or she is
  297.      willing to distribute software through any other system and a
  298.      licensee cannot impose that choice.
  299.  
  300.      This section is intended to make thoroughly clear what is believed
  301.      to be a consequence of the rest of this License.
  302.  
  303.   9. If the distribution and/or use of the Program is restricted in
  304.      certain countries either by patents or by copyrighted interfaces,
  305.      the original copyright holder who places the Program under this
  306.      License may add an explicit geographical distribution limitation
  307.      excluding those countries, so that distribution is permitted only
  308.      in or among countries not thus excluded.  In such case, this
  309.      License incorporates the limitation as if written in the body of
  310.      this License.
  311.  
  312.  10. The Free Software Foundation may publish revised and/or new
  313.      versions of the General Public License from time to time.  Such
  314.      new versions will be similar in spirit to the present version, but
  315.      may differ in detail to address new problems or concerns.
  316.  
  317.      Each version is given a distinguishing version number.  If the
  318.      Program specifies a version number of this License which applies
  319.      to it and "any later version", you have the option of following
  320.      the terms and conditions either of that version or of any later
  321.      version published by the Free Software Foundation.  If the Program
  322.      does not specify a version number of this License, you may choose
  323.      any version ever published by the Free Software Foundation.
  324.  
  325.  11. If you wish to incorporate parts of the Program into other free
  326.      programs whose distribution conditions are different, write to the
  327.      author to ask for permission.  For software which is copyrighted
  328.      by the Free Software Foundation, write to the Free Software
  329.      Foundation; we sometimes make exceptions for this.  Our decision
  330.      will be guided by the two goals of preserving the free status of
  331.      all derivatives of our free software and of promoting the sharing
  332.      and reuse of software generally.
  333.  
  334.                                 NO WARRANTY
  335.  
  336.  12. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
  337.      WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE
  338.      LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
  339.      HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
  340.      WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT
  341.      NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  342.      FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE
  343.      QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
  344.      PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY
  345.      SERVICING, REPAIR OR CORRECTION.
  346.  
  347.  13. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  348.      WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY
  349.      MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE
  350.      LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
  351.      INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
  352.      INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
  353.      DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU
  354.      OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY
  355.      OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN
  356.      ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  357.  
  358.                       END OF TERMS AND CONDITIONS
  359.  
  360. How to Apply These Terms to Your New Programs
  361. =============================================
  362.  
  363.    If you develop a new program, and you want it to be of the greatest
  364. possible use to the public, the best way to achieve this is to make it
  365. free software which everyone can redistribute and change under these
  366. terms.
  367.  
  368.    To do so, attach the following notices to the program.  It is safest
  369. to attach them to the start of each source file to most effectively
  370. convey the exclusion of warranty; and each file should have at least
  371. the "copyright" line and a pointer to where the full notice is found.
  372.  
  373.      ONE LINE TO GIVE THE PROGRAM'S NAME AND A BRIEF IDEA OF WHAT IT DOES.
  374.      Copyright (C) 19YY  NAME OF AUTHOR
  375.      
  376.      This program is free software; you can redistribute it and/or modify
  377.      it under the terms of the GNU General Public License as published by
  378.      the Free Software Foundation; either version 2 of the License, or
  379.      (at your option) any later version.
  380.      
  381.      This program is distributed in the hope that it will be useful,
  382.      but WITHOUT ANY WARRANTY; without even the implied warranty of
  383.      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  384.      GNU General Public License for more details.
  385.      
  386.      You should have received a copy of the GNU General Public License
  387.      along with this program; if not, write to the Free Software
  388.      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  389.  
  390.    Also add information on how to contact you by electronic and paper
  391. mail.
  392.  
  393.    If the program is interactive, make it output a short notice like
  394. this when it starts in an interactive mode:
  395.  
  396.      Gnomovision version 69, Copyright (C) 19YY NAME OF AUTHOR
  397.      Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
  398.      type `show w'.
  399.      This is free software, and you are welcome to redistribute it
  400.      under certain conditions; type `show c' for details.
  401.  
  402.    The hypothetical commands `show w' and `show c' should show the
  403. appropriate parts of the General Public License.  Of course, the
  404. commands you use may be called something other than `show w' and `show
  405. c'; they could even be mouse-clicks or menu items--whatever suits your
  406. program.
  407.  
  408.    You should also get your employer (if you work as a programmer) or
  409. your school, if any, to sign a "copyright disclaimer" for the program,
  410. if necessary.  Here is a sample; alter the names:
  411.  
  412.      Yoyodyne, Inc., hereby disclaims all copyright interest in the program
  413.      `Gnomovision' (which makes passes at compilers) written by James Hacker.
  414.      
  415.      SIGNATURE OF TY COON, 1 April 1989
  416.      Ty Coon, President of Vice
  417.  
  418.    This General Public License does not permit incorporating your
  419. program into proprietary programs.  If your program is a subroutine
  420. library, you may consider it more useful to permit linking proprietary
  421. applications with the library.  If this is what you want to do, use the
  422. GNU Library General Public License instead of this License.
  423.  
  424. File: gcc.info,  Node: Contributors,  Next: Boycott,  Prev: Copying,  Up: Top
  425.  
  426. Contributors to GNU CC
  427. **********************
  428.  
  429.    In addition to Richard Stallman, several people have written parts
  430. of GNU CC.
  431.  
  432.    * The idea of using RTL and some of the optimization ideas came from
  433.      the program PO written at the University of Arizona by Jack
  434.      Davidson and Christopher Fraser.  See "Register Allocation and
  435.      Exhaustive Peephole Optimization", Software Practice and
  436.      Experience 14 (9), Sept. 1984, 857-866.
  437.  
  438.    * Paul Rubin wrote most of the preprocessor.
  439.  
  440.    * Leonard Tower wrote parts of the parser, RTL generator, and RTL
  441.      definitions, and of the Vax machine description.
  442.  
  443.    * Ted Lemon wrote parts of the RTL reader and printer.
  444.  
  445.    * Jim Wilson implemented loop strength reduction and some other loop
  446.      optimizations.
  447.  
  448.    * Nobuyuki Hikichi of Software Research Associates, Tokyo,
  449.      contributed the support for the Sony NEWS machine.
  450.  
  451.    * Charles LaBrec contributed the support for the Integrated Solutions
  452.      68020 system.
  453.  
  454.    * Michael Tiemann of Cygnus Support wrote the front end for C++, as
  455.      well as the support for inline functions and instruction
  456.      scheduling.  Also the descriptions of the National Semiconductor
  457.      32000 series cpu, the SPARC cpu and part of the Motorola 88000 cpu.
  458.  
  459.    * Jan Stein of the Chalmers Computer Society provided support for
  460.      Genix, as well as part of the 32000 machine description.
  461.  
  462.    * Randy Smith finished the Sun FPA support.
  463.  
  464.    * Robert Brown implemented the support for Encore 32000 systems.
  465.  
  466.    * David Kashtan of SRI adapted GNU CC to the Vomit-Making System
  467.      (VMS).
  468.  
  469.    * Alex Crain provided changes for the 3b1.
  470.  
  471.    * Greg Satz and Chris Hanson assisted in making GNU CC work on HP-UX
  472.      for the 9000 series 300.
  473.  
  474.    * William Schelter did most of the work on the Intel 80386 support.
  475.  
  476.    * Christopher Smith did the port for Convex machines.
  477.  
  478.    * Paul Petersen wrote the machine description for the Alliant FX/8.
  479.  
  480.    * Alain Lichnewsky ported GNU CC to the Mips cpu.
  481.  
  482.    * Devon Bowen, Dale Wiles and Kevin Zachmann ported GNU CC to the
  483.      Tahoe.
  484.  
  485.    * Jonathan Stone wrote the machine description for the Pyramid
  486.      computer.
  487.  
  488.    * Gary Miller ported GNU CC to Charles River Data Systems machines.
  489.  
  490.    * Richard Kenner of the New York University Ultracomputer Research
  491.      Laboratory wrote the machine descriptions for the AMD 29000, the
  492.      DEC Alpha, the IBM RT PC, and the IBM RS/6000 as well as the
  493.      support for instruction attributes.  He also made changes to
  494.      better support RISC processors including changes to common
  495.      subexpression elimination, strength reduction, function calling
  496.      sequence handling, and condition code support, in addition to
  497.      generalizing the code for frame pointer elimination.
  498.  
  499.    * Richard Kenner and Michael Tiemann jointly developed reorg.c, the
  500.      delay slot scheduler.
  501.  
  502.    * Mike Meissner and Tom Wood of Data General finished the port to the
  503.      Motorola 88000.
  504.  
  505.    * Masanobu Yuhara of Fujitsu Laboratories implemented the machine
  506.      description for the Tron architecture (specifically, the Gmicro).
  507.  
  508.    * NeXT, Inc. donated the front end that supports the Objective C
  509.      language.
  510.  
  511.    * James van Artsdalen wrote the code that makes efficient use of the
  512.      Intel 80387 register stack.
  513.  
  514.    * Mike Meissner at the Open Software Foundation finished the port to
  515.      the MIPS cpu, including adding ECOFF debug support.
  516.  
  517.    * Ron Guilmette implemented the `protoize' and `unprotoize' tools,
  518.      the support for Dwarf symbolic debugging information, and much of
  519.      the support for System V Release 4.  He has also worked heavily on
  520.      the Intel 386 and 860 support.
  521.  
  522.    * Torbjorn Granlund of the Swedish Institute of Computer Science
  523.      implemented multiply-by-constant optimization and better long long
  524.      support, and improved leaf function register allocation.
  525.  
  526.    * Mike Stump implemented the support for Elxsi 64 bit CPU.
  527.  
  528.    * John Wehle added the machine description for the Western Electric
  529.      32000 processor used in several 3b series machines (no relation to
  530.      the National Semiconductor 32000 processor).
  531.  
  532.    * Holger Teutsch provided the support for the Clipper cpu.
  533.  
  534.    * Stephen Moshier contributed the floating point emulator that
  535.      assists in cross-compilation and permits support for floating
  536.      point numbers wider than 64 bits.
  537.  
  538.    * Steve Chamberlain wrote the support for the Hitachi SH processor.
  539.  
  540. File: gcc.info,  Node: Boycott,  Next: G++ and GCC,  Prev: Contributors,  Up: Top
  541.  
  542. Protect Your Freedom--Fight "Look And Feel"
  543. *******************************************
  544.  
  545.      This section is a political message from the League for Programming
  546.      Freedom to the users of GNU CC.  It is included here as an
  547.      expression of support for the League on the part of the Free
  548.      Software Foundation.
  549.  
  550.    Apple and Lotus are trying to create a new form of legal monopoly: a
  551. copyright on a class of user interfaces.  These monopolies would cause
  552. serious problems for users and developers of computer software and
  553. systems.  Xerox, too, has tried to make a monopoly for itself on window
  554. systems; their suit against Apple was thrown out on a technicality, but
  555. Xerox has not said anything to indicate it wouldn't try again.
  556.  
  557.    Until a few years ago, the law seemed clear: no one could restrict
  558. others from using a user interface; programmers were free to implement
  559. any interface they chose.  Imitating interfaces, sometimes with changes,
  560. was standard practice in the computer field.  The interfaces we know
  561. evolved gradually in this way; for example, the Macintosh user interface
  562. drew ideas from the Xerox interface, which in turn drew on work done at
  563. Stanford and SRI.  1-2-3 imitated VisiCalc, and dBase imitated a
  564. database program from JPL.
  565.  
  566.    Most computer companies, and nearly all computer users, were happy
  567. with this state of affairs.  The companies that are suing say it does
  568. not offer "enough incentive" to develop their products, but they must
  569. have considered it "enough" when they made their decision to do so.  It
  570. seems they are not satisfied with the opportunity to continue to compete
  571. in the marketplace--not even with a head start.
  572.  
  573.    If companies like Xerox, Lotus, and Apple are permitted to make law
  574. through the courts, the precedent will hobble the software industry:
  575.  
  576.    * Gratuitous incompatibilities will burden users.  Imagine if each
  577.      car manufacturer had to arrange the pedals in a different order.
  578.  
  579.    * Software will become and remain more expensive.  Users will be
  580.      "locked in" to proprietary interfaces, for which there is no real
  581.      competition.
  582.  
  583.    * Large companies have an unfair advantage wherever lawsuits become
  584.      commonplace.  Since they can easily afford to sue, they can
  585.      intimidate small companies with threats even when they don't
  586.      really have a case.
  587.  
  588.    * User interface improvements will come slower, since incremental
  589.      evolution through creative imitation will no longer be permitted.
  590.  
  591.    * Even Apple, etc., will find it harder to make improvements if they
  592.      can no longer adapt the good ideas that others introduce, for fear
  593.      of weakening their own legal positions.  Some users suggest that
  594.      this stagnation may already have started.
  595.  
  596.    * If you use GNU software, you might find it of some concern that
  597.      user interface copyright will make it hard for the Free Software
  598.      Foundation to develop programs compatible with the interfaces that
  599.      you already know.
  600.  
  601.    To protect our freedom from lawsuits like these, a group of
  602. programmers and users have formed a new grass-roots political
  603. organization, the League for Programming Freedom.
  604.  
  605.    The purpose of the League is to oppose new monopolistic practices
  606. such as user-interface copyright and software patents; it calls for a
  607. return to the legal policies of the recent past, in which these
  608. practices were not allowed.  The League is not concerned with free
  609. software as an issue, and not affiliated with the Free Software
  610. Foundation.
  611.  
  612.    The League's membership rolls include John McCarthy, inventor of
  613. Lisp, Marvin Minsky, founder of the Artificial Intelligence lab, Guy L.
  614. Steele, Jr., author of well-known books on Lisp and C, as well as
  615. Richard Stallman, the developer of GNU CC.  Please join and add your
  616. name to the list.  Membership dues in the League are $42 per year for
  617. programmers, managers and professionals; $10.50 for students; $21 for
  618. others.
  619.  
  620.    The League needs both activist members and members who only pay their
  621. dues.
  622.  
  623.    To join, or for more information, phone (617) 243-4091 or write to:
  624.  
  625.      League for Programming Freedom
  626.      1 Kendall Square #143
  627.      P.O. Box 9171
  628.      Cambridge, MA 02139
  629.  
  630.    You can also send electronic mail to `league@prep.ai.mit.edu'.
  631.  
  632.    Here are some suggestions from the League for things you can do to
  633. protect your freedom to write programs:
  634.  
  635.    * Don't buy from Xerox, Lotus or Apple.  Buy from their competitors
  636.      or from the defendants they are suing.
  637.  
  638.    * Don't develop software to work with the systems made by these
  639.      companies.
  640.  
  641.    * Port your existing software to competing systems, so that you
  642.      encourage users to switch.
  643.  
  644.    * Write letters to company presidents to let them know their conduct
  645.      is unacceptable.
  646.  
  647.    * Tell your friends and colleagues about this issue and how it
  648.      threatens to ruin the computer industry.
  649.  
  650.    * Above all, don't work for the look-and-feel plaintiffs, and don't
  651.      accept contracts from them.
  652.  
  653.    * Write to Congress to explain the importance of this issue.
  654.  
  655.           House Subcommittee on Intellectual Property
  656.           2137 Rayburn Bldg
  657.           Washington, DC 20515
  658.           
  659.           Senate Subcommittee on Patents, Trademarks and Copyrights
  660.           United States Senate
  661.           Washington, DC 20510
  662.  
  663.      (These committees have received lots of mail already; let's give
  664.      them even more.)
  665.  
  666.    Express your opinion!  You can make a difference.
  667.  
  668. File: gcc.info,  Node: G++ and GCC,  Next: Invoking GCC,  Prev: Boycott,  Up: Top
  669.  
  670. Compile C, C++, or Objective C
  671. ******************************
  672.  
  673.    The C, C++, and Objective C versions of the compiler are integrated;
  674. the GNU C compiler can compile programs written in C, C++, or Objective
  675. C.
  676.  
  677.    "GCC" is a common shorthand term for the GNU C compiler.  This is
  678. both the most general name for the compiler, and the name used when the
  679. emphasis is on compiling C programs.
  680.  
  681.    When referring to C++ compilation, it is usual to call the compiler
  682. "G++".  Since there is only one compiler, it is also accurate to call
  683. it "GCC" no matter what the language context; however, the term "G++"
  684. is more useful when the emphasis is on compiling C++ programs.
  685.  
  686.    G++ is a *compiler*, not merely a preprocessor.  G++ builds object
  687. code directly from your C++ program source.  There is no intermediate C
  688. version of the program.  (By contrast, for example, some other
  689. implementations use a program that generates a C program from your C++
  690. source.)  Avoiding an intermediate C representation of the program means
  691. that you get better object code, and better debugging information.  The
  692. GNU debugger, GDB, works with this information in the object code to
  693. give you comprehensive C++ source-level editing capabilities (*note C
  694. and C++: (gdb.info)C.).
  695.  
  696. File: gcc.info,  Node: Invoking GCC,  Next: Installation,  Prev: G++ and GCC,  Up: Top
  697.  
  698. GNU CC Command Options
  699. **********************
  700.  
  701.    When you invoke GNU CC, it normally does preprocessing, compilation,
  702. assembly and linking.  The "overall options" allow you to stop this
  703. process at an intermediate stage.  For example, the `-c' option says
  704. not to run the linker.  Then the output consists of object files output
  705. by the assembler.
  706.  
  707.    Other options are passed on to one stage of processing.  Some options
  708. control the preprocessor and others the compiler itself.  Yet other
  709. options control the assembler and linker; most of these are not
  710. documented here, since you rarely need to use any of them.
  711.  
  712.    Most of the command line options that you can use with GNU CC are
  713. useful for C programs; when an option is only useful with another
  714. language (usually C++), the explanation says so explicitly.  If the
  715. description for a particular option does not mention a source language,
  716. you can use that option with all supported languages.
  717.  
  718.    *Note Compiling C++ Programs: Invoking G++, for a summary of special
  719. options for compiling C++ programs.
  720.  
  721.    The `gcc' program accepts options and file names as operands.  Many
  722. options have multiletter names; therefore multiple single-letter options
  723. may *not* be grouped: `-dr' is very different from `-d -r'.
  724.  
  725.    You can mix options and other arguments.  For the most part, the
  726. order you use doesn't matter.  Order does matter when you use several
  727. options of the same kind; for example, if you specify `-L' more than
  728. once, the directories are searched in the order specified.
  729.  
  730.    Many options have long names starting with `-f' or with `-W'--for
  731. example, `-fforce-mem', `-fstrength-reduce', `-Wformat' and so on.
  732. Most of these have both positive and negative forms; the negative form
  733. of `-ffoo' would be `-fno-foo'.  This manual documents only one of
  734. these two forms, whichever one is not the default.
  735.  
  736. * Menu:
  737.  
  738. * Option Summary::    Brief list of all options, without explanations.
  739. * Overall Options::     Controlling the kind of output:
  740.                         an executable, object files, assembler files,
  741.                         or preprocessed source.
  742. * Invoking G++::    Compiling C++ programs.
  743. * C Dialect Options::   Controlling the variant of C language compiled.
  744. * C++ Dialect Options:: Variations on C++.
  745. * Warning Options::     How picky should the compiler be?
  746. * Debugging Options::   Symbol tables, measurements, and debugging dumps.
  747. * Optimize Options::    How much optimization?
  748. * Preprocessor Options:: Controlling header files and macro definitions.
  749.                          Also, getting dependency information for Make.
  750. * Assembler Options::   Passing options to the assembler.
  751. * Link Options::        Specifying libraries and so on.
  752. * Directory Options::   Where to find header files and libraries.
  753.                         Where to find the compiler executable files.
  754. * Target Options::      Running a cross-compiler, or an old version of GNU CC.
  755. * Submodel Options::    Specifying minor hardware or convention variations,
  756.                         such as 68010 vs 68020.
  757. * Code Gen Options::    Specifying conventions for function calls, data layout
  758.                         and register usage.
  759. * Environment Variables:: Env vars that affect GNU CC.
  760. * Running Protoize::    Automatically adding or removing function prototypes.
  761.  
  762. File: gcc.info,  Node: Option Summary,  Next: Overall Options,  Up: Invoking GCC
  763.  
  764. Option Summary
  765. ==============
  766.  
  767.    Here is a summary of all the options, grouped by type.  Explanations
  768. are in the following sections.
  769.  
  770. *Overall Options*
  771.      *Note Options Controlling the Kind of Output: Overall Options.
  772.           -c  -S  -E  -o FILE  -pipe  -v  -x LANGUAGE
  773.  
  774. *C Language Options*
  775.      *Note Options Controlling C Dialect: C Dialect Options.
  776.           -ansi  -fcond-mismatch  -fno-asm  -fno-builtin
  777.           -fsigned-bitfields  -fsigned-char
  778.           -funsigned-bitfields  -funsigned-char  -fwritable-strings
  779.           -traditional  -traditional-cpp  -trigraphs
  780.  
  781. *C++ Language Options*
  782.      *Note Options Controlling C++ Dialect: C++ Dialect Options.
  783.           -fall-virtual  -fdollars-in-identifiers
  784.           -felide-constructors  -fenum-int-equiv  -fmemoize-lookups
  785.           -fno-strict-prototype  -fnonnull-objects
  786.           -fthis-is-variable  -nostdinc++
  787.  
  788. *Warning Options*
  789.      *Note Options to Request or Suppress Warnings: Warning Options.
  790.           -fsyntax-only  -pedantic  -pedantic-errors
  791.           -w  -W  -Wall  -Waggregate-return  -Wcast-align
  792.           -Wcast-qual  -Wchar-subscript  -Wcomment  -Wconversion
  793.           -Wenum-clash  -Werror  -Wformat  -Wid-clash-LEN
  794.           -Wimplicit  -Wimport  -Winline  -Wmissing-prototypes
  795.           -Wnested-externs  -Woverloaded-virtual  -Wparentheses
  796.           -Wpointer-arith  -Wredundant-decls  -Wreturn-type
  797.           -Wshadow  -Wstrict-prototypes  -Wswitch
  798.           -Wtemplate-debugging  -Wtraditional  -Wtrigraphs
  799.           -Wuninitialized  -Wunused  -Wwrite-strings
  800.  
  801. *Debugging Options*
  802.      *Note Options for Debugging Your Program or GCC: Debugging Options.
  803.           -a  -dLETTERS  -fpretend-float
  804.           -g  -gLEVEL -ggdb  -gdwarf -gdwarf+
  805.           -gstabs  -gstabs+  -gcoff -gxcoff  -gxcoff+
  806.           -p  -pg  -save-temps  -print-libgcc-file-name
  807.  
  808. *Optimization Options*
  809.      *Note Options that Control Optimization: Optimize Options.
  810.           -fcaller-saves  -fcse-follow-jumps  -fcse-skip-blocks
  811.           -fdelayed-branch   -fexpensive-optimizations
  812.           -ffast-math  -ffloat-store  -fforce-addr  -fforce-mem
  813.           -finline-functions  -fkeep-inline-functions
  814.           -fno-default-inline  -fno-defer-pop  -fno-function-cse
  815.           -fno-inline  -fno-peephole  -fomit-frame-pointer
  816.           -frerun-cse-after-loop  -fschedule-insns
  817.           -fschedule-insns2  -fstrength-reduce  -fthread-jumps
  818.           -funroll-all-loops  -funroll-loops
  819.           -O  -O2
  820.  
  821. *Preprocessor Options*
  822.      *Note Options Controlling the Preprocessor: Preprocessor Options.
  823.           -AASSERTION  -C  -dD  -dM  -dN
  824.           -DMACRO[=DEFN]  -E  -H
  825.           -idirafter DIR
  826.           -include FILE  -imacros FILE
  827.           -iprefix FILE  -iwithprefix DIR
  828.           -M  -MD  -MM  -MMD  -nostdinc  -P  -trigraphs  -UMACRO
  829.  
  830. *Assembler Option*
  831.      *Note Passing Options to the Assembler: Assembler Options.
  832.           -Wa,OPTION
  833.  
  834. *Linker Options*
  835.      *Note Options for Linking: Link Options.
  836.           OBJECT-FILE-NAME
  837.           -lLIBRARY  -nostartfiles  -nostdlib
  838.           -static  -shared  -symbolic
  839.           -Wl,OPTION  -Xlinker OPTION
  840.           -u SYMBOL
  841.  
  842. *Directory Options*
  843.      *Note Options for Directory Search: Directory Options.
  844.           -BPREFIX  -IDIR  -I-  -LDIR
  845.  
  846. *Target Options*
  847.      *Note Target Options::.
  848.           -b MACHINE  -V VERSION
  849.  
  850. *Machine Dependent Options*
  851.      *Note Hardware Models and Configurations: Submodel Options.
  852.           *M680x0 Options*
  853.           -m68000  -m68020  -m68020-40  -m68030  -m68040  -m68881
  854.           -mbitfield  -mc68000  -mc68020  -mfpa  -mnobitfield
  855.           -mrtd  -mshort  -msoft-float
  856.           
  857.           *VAX Options*
  858.           -mg  -mgnu  -munix
  859.           
  860.           *SPARC Options*
  861.           -mepilogue  -mfpu  -mhard-float
  862.           -mno-fpu  -mno-epilogue  -msoft-float
  863.           -msparclite  -mv8
  864.           
  865.           *Convex Options*
  866.           -mc1  -mc2  -mc32  -mc34  -mc38
  867.           -margcount  -mnoargcount
  868.           -mlong32  -mlong64
  869.           -mbolatile-cache  -mvolatile-nocache
  870.           
  871.           *AMD29K Options*
  872.           -m29000  -m29050  -mbw  -mdw  -mkernel-registers
  873.           -mlarge  -mnbw  -mnodw  -msmall  -mstack-check
  874.           -muser-registers
  875.           
  876.           *M88K Options*
  877.           -m88000  -m88100  -m88110  -mbig-pic
  878.           -mcheck-zero-division  -mhandle-large-shift
  879.           -midentify-revision  -mno-check-zero-division
  880.           -mno-ocs-debug-info  -mno-ocs-frame-position
  881.           -mno-optimize-arg-area  -mno-serialize-volatile
  882.           -mno-underscores  -mocs-debug-info
  883.           -mocs-frame-position  -moptimize-arg-area
  884.           -mserialize-volatile  -mshort-data-NUM  -msvr3
  885.           -msvr4  -mtrap-large-shift  -muse-div-instruction
  886.           -mversion-03.00  -mwarn-passed-structs
  887.           
  888.           *RS/6000 Options*
  889.           -mfp-in-toc  -mno-fop-in-toc
  890.           
  891.           *RT Options*
  892.           -mcall-lib-mul  -mfp-arg-in-fpregs  -mfp-arg-in-gregs
  893.           -mfull-fp-blocks  -mhc-struct-return  -min-line-mul
  894.           -mminimum-fp-blocks  -mnohc-struct-return
  895.           
  896.           *MIPS Options*
  897.           -mcpu=CPU  TYPE  -mips2  -mips3  -mint64
  898.           -mlong64  -mlonglong128  -mmips-as  -mgas  -mrnames
  899.           -mno-rnames  -mgpopt  -mno-gpopt  -mstats  -mno-stats
  900.           -mmemcpy  -mno-memcpy  -mno-mips-tfile  -mmips-tfile
  901.           -msoft-float  -mhard-float  -mabicalls  -mno-abicalls
  902.           -mhalf-pic  -mno-half-pic -mlong-calls -mno-long-calls
  903.           -G  NUM  -nocpp
  904.           
  905.           *i386 Options*
  906.           -m486  -mno-486  -msoft-float  -msvr3-shlib  -mieee-fp
  907.           -mno-fp-ret-in-387
  908.           
  909.           *HPPA Options*
  910.           -mpa-risc-1-0
  911.           -mpa-risc-1-1
  912.           -mkernel
  913.           -mshared-libs
  914.           -mno-shared-libs
  915.           -mlong-calls
  916.           -mdisable-fpregs
  917.           -mdisable-indexing
  918.           -mtrailing-colon
  919.           
  920.           *Intel 960 Options*
  921.           -mCPU TYPE
  922.           -mnumerics  -msoft-float
  923.           -mcode-align  -mno-code-align
  924.           -mleaf-procedures  -mno-leaf-procedures
  925.           -mtail-call  -mno-tail-call
  926.           -mcomplex-addr  -mno-complex-addr
  927.           -mclean-linkage  -mno-clean-linkage
  928.           -mic-compat  -mic2.0-compat  -mic3.0-compat
  929.           -masm-compat  -mintel-asm
  930.           -mstrict-align  -mno-strict-align
  931.           -mold-align  -mno-old-align
  932.           
  933.           *DEC Alpha Options*
  934.           -mfp-regs  -mno-fp-regs  -mno-soft-float
  935.           -msoft-float
  936.           
  937.           *System V Options*
  938.           -G  -Qy  -Qn  -YP,PATHS  -Ym,DIR
  939.  
  940. *Code Generation Options*
  941.      *Note Options for Code Generation Conventions: Code Gen Options.
  942.           -fcall-saved-REG  -fcall-used-REG
  943.           -ffixed-REG  -finhibit-size-directive
  944.           -fno-common  -fno-ident
  945.           -fno-gnu-linker  -fpcc-struct-return  -fpic  -fPIC
  946.           -freg-struct-return  -fshared-data  -fshort-enums
  947.           -fshort-double  -fvolatile  -fvolatile-global
  948.           -fverbose-asm
  949.  
  950. * Menu:
  951.  
  952. * Overall Options::     Controlling the kind of output:
  953.                         an executable, object files, assembler files,
  954.                         or preprocessed source.
  955. * C Dialect Options::   Controlling the variant of C language compiled.
  956. * C++ Dialect Options:: Variations on C++.
  957. * Warning Options::     How picky should the compiler be?
  958. * Debugging Options::   Symbol tables, measurements, and debugging dumps.
  959. * Optimize Options::    How much optimization?
  960. * Preprocessor Options:: Controlling header files and macro definitions.
  961.                          Also, getting dependency information for Make.
  962. * Assembler Options::   Passing options to the assembler.
  963. * Link Options::        Specifying libraries and so on.
  964. * Directory Options::   Where to find header files and libraries.
  965.                         Where to find the compiler executable files.
  966. * Target Options::      Running a cross-compiler, or an old version of GNU CC.
  967.  
  968. File: gcc.info,  Node: Overall Options,  Next: Invoking G++,  Prev: Option Summary,  Up: Invoking GCC
  969.  
  970. Options Controlling the Kind of Output
  971. ======================================
  972.  
  973.    Compilation can involve up to four stages: preprocessing, compilation
  974. proper, assembly and linking, always in that order.  The first three
  975. stages apply to an individual source file, and end by producing an
  976. object file; linking combines all the object files (those newly
  977. compiled, and those specified as input) into an executable file.
  978.  
  979.    For any given input file, the file name suffix determines what kind
  980. of compilation is done:
  981.  
  982. `FILE.c'
  983.      C source code which must be preprocessed.
  984.  
  985. `FILE.i'
  986.      C source code which should not be preprocessed.
  987.  
  988. `FILE.ii'
  989.      C++ source code which should not be preprocessed.
  990.  
  991. `FILE.m'
  992.      Objective-C source code.  Note that you must link with the library
  993.      `libobjc.a' to make an Objective-C program work.
  994.  
  995. `FILE.h'
  996.      C header file (not to be compiled or linked).
  997.  
  998. `FILE.cc'
  999. `FILE.cxx'
  1000. `FILE.C'
  1001.      C++ source code which must be preprocessed.
  1002.  
  1003. `FILE.s'
  1004.      Assembler code.
  1005.  
  1006. `FILE.S'
  1007.      Assembler code which must be preprocessed.
  1008.  
  1009. `OTHER'
  1010.      An object file to be fed straight into linking.  Any file name
  1011.      with no recognized suffix is treated this way.
  1012.  
  1013.    You can specify the input language explicitly with the `-x' option:
  1014.  
  1015. `-x LANGUAGE'
  1016.      Specify explicitly the LANGUAGE for the following input files
  1017.      (rather than letting the compiler choose a default based on the
  1018.      file name suffix).  This option applies to all following input
  1019.      files until the next `-x' option.  Possible values for LANGUAGE
  1020.      are:
  1021.           c  objective-c  c++
  1022.           c-header  cpp-output  c++-cpp-output
  1023.           assembler  assembler-with-cpp
  1024.  
  1025. `-x none'
  1026.      Turn off any specification of a language, so that subsequent files
  1027.      are handled according to their file name suffixes (as they are if
  1028.      `-x' has not been used at all).
  1029.  
  1030.    If you only want some of the stages of compilation, you can use `-x'
  1031. (or filename suffixes) to tell `gcc' where to start, and one of the
  1032. options `-c', `-S', or `-E' to say where `gcc' is to stop.  Note that
  1033. some combinations (for example, `-x cpp-output -E' instruct `gcc' to do
  1034. nothing at all.
  1035.  
  1036. `-c'
  1037.      Compile or assemble the source files, but do not link.  The linking
  1038.      stage simply is not done.  The ultimate output is in the form of an
  1039.      object file for each source file.
  1040.  
  1041.      By default, the object file name for a source file is made by
  1042.      replacing the suffix `.c', `.i', `.s', etc., with `.o'.
  1043.  
  1044.      Unrecognized input files, not requiring compilation or assembly,
  1045.      are ignored.
  1046.  
  1047. `-S'
  1048.      Stop after the stage of compilation proper; do not assemble.  The
  1049.      output is in the form of an assembler code file for each
  1050.      non-assembler input file specified.
  1051.  
  1052.      By default, the assembler file name for a source file is made by
  1053.      replacing the suffix `.c', `.i', etc., with `.s'.
  1054.  
  1055.      Input files that don't require compilation are ignored.
  1056.  
  1057. `-E'
  1058.      Stop after the preprocessing stage; do not run the compiler
  1059.      proper.  The output is in the form of preprocessed source code,
  1060.      which is sent to the standard output.
  1061.  
  1062.      Input files which don't require preprocessing are ignored.
  1063.  
  1064. `-o FILE'
  1065.      Place output in file FILE.  This applies regardless to whatever
  1066.      sort of output is being produced, whether it be an executable file,
  1067.      an object file, an assembler file or preprocessed C code.
  1068.  
  1069.      Since only one output file can be specified, it does not make
  1070.      sense to use `-o' when compiling more than one input file, unless
  1071.      you are producing an executable file as output.
  1072.  
  1073.      If `-o' is not specified, the default is to put an executable file
  1074.      in `a.out', the object file for `SOURCE.SUFFIX' in `SOURCE.o', its
  1075.      assembler file in `SOURCE.s', and all preprocessed C source on
  1076.      standard output.
  1077.  
  1078. `-v'
  1079.      Print (on standard error output) the commands executed to run the
  1080.      stages of compilation.  Also print the version number of the
  1081.      compiler driver program and of the preprocessor and the compiler
  1082.      proper.
  1083.  
  1084. `-pipe'
  1085.      Use pipes rather than temporary files for communication between the
  1086.      various stages of compilation.  This fails to work on some systems
  1087.      where the assembler is unable to read from a pipe; but the GNU
  1088.      assembler has no trouble.
  1089.  
  1090. File: gcc.info,  Node: Invoking G++,  Next: C Dialect Options,  Prev: Overall Options,  Up: Invoking GCC
  1091.  
  1092. Compiling C++ Programs
  1093. ======================
  1094.  
  1095.    C++ source files conventionally use one of the suffixes `.C', `.cc',
  1096. or `.cxx'; preprocessed C++ files use the suffix `.ii'.  GNU CC
  1097. recognizes files with these names and compiles them as C++ programs
  1098. even if you call the compiler the same way as for compiling C programs
  1099. (usually with the name `gcc').
  1100.  
  1101.    However, C++ programs often require class libraries as well as a
  1102. compiler that understands the C++ language--and under some
  1103. circumstances, you might want to compile programs from standard input,
  1104. or otherwise without a suffix that flags them as C++ programs.  `g++'
  1105. is a shell script that calls GNU CC with the default language set to
  1106. C++, and automatically specifies linking against the GNU class library
  1107. libg++.  (1) On many systems, the script `g++' is also installed with
  1108. the name `c++'.
  1109.  
  1110.    When you compile C++ programs, you may specify many of the same
  1111. command-line options that you use for compiling programs in any
  1112. language; or command-line options meaningful for C and related
  1113. languages; or options that are meaningful only for C++ programs.  *Note
  1114. Options Controlling C Dialect: C Dialect Options, for explanations of
  1115. options for languages related to C.  *Note Options Controlling C++
  1116. Dialect: C++ Dialect Options, for explanations of options that are
  1117. meaningful only for C++ programs.
  1118.  
  1119.    ---------- Footnotes ----------
  1120.  
  1121.    (1)  Prior to release 2 of the compiler, there was a separate `g++'
  1122. compiler.  That version was based on GNU CC, but not integrated with
  1123. it.  Versions of `g++' with a `1.XX' version number--for example, `g++'
  1124. version 1.37 or 1.42--are much less reliable than the versions
  1125. integrated with GCC 2.  Moreover, combining G++ `1.XX' with a version 2
  1126. GCC will simply not work.
  1127.  
  1128. ə